<template>
	<view class="page-warpper">
		<view class="content-warpper">
			<baseForm :formConfig="formConfig"></baseForm>
		</view>
	</view>
</template>

<script>
	import userMixins from '@/libs/userMixins.js'
	import gloryMixins from './gloryMixins.js';
	import baseForm from '@/components/dd-form/baseForm.vue';
	export default {
		mixins: [userMixins, gloryMixins],
		components: {baseForm},
		data() {
			return {
				info: {},
				formConfig: {
					type: 'approval',
					props: [
						{
							label: '课题名称',
							prop: 'ktmc',
							type: 'normal-input',
							inputType: 'textarea',
							border: true,
							height: 100,
							autoHeight: true,
						},
						{
							label: '课题编号',
							prop: 'bh',
							type: 'normal-input'
						},
						{
							label: '课题级别',
							prop: 'ktjb',
							type: 'select-input',
						},
						{
							label: '立项日期',
							prop: 'rq',
							type: 'calendar-input',
							calendarMode: 'date'
						},
						{
							label: '批准单位',
							prop: 'dw',
							type: 'normal-input'
						},
						{
							label: '课题状态',
							prop: 'zt',
							type: 'select-input',
						},
						{
							label: '附件',
							prop: 'fj',
							type: 'upload-input'
						},
					],
					model: {
						ktmc: '',
						bh: '',
						ktjb: '',
						zt: '',
						rq: '',
						fileList: []
					},
				}
			}
		},
		onShow() {
			this.info = JSON.parse(this.getPageOptions().info);
		},
		methods: {
			
		},
	}
</script>

<style lang="scss" scoped>
.page-warpper {
	height: 100%;
}
.content-warpper {
	padding: 40rpx;
	height: calc(100% - 90rpx);
	overflow-y: auto;
}
	
</style>
